Total

3
design pattern

Training

Builder Pattern ใน Java

วันนี้เรามารู้จักกับ Builder Pattern กัน โดยเราจะใช้ Java เป็นตัวอย่างประกอบ เจ้า Design Pattern นี้ใช้สำหรับประยุกต์กับการสร้างออบเจกต์ Model หรือ Entity โดยเฉพาะครับ ว่าแล้วไปดูกันเลย


แนวคิดการเขียนโปรแกรมแบบ Oriented ต่างๆ

ระหว่างที่ผมกำลังเขียนหนังสือเล่มใหม่ ซึ่งได้มีการพูดถึงแนวคิดแบบ Component-oriented Architecture ก็ได้ฉุกคิดขึ้นมาว่า คงมีหลายๆคนที่สับสนกับแนวคิด Oriented แบบต่างๆ และมีข้อสงสัยเช่น Object-oriented Programming ต่างจาก Component-oriented Architecture อย่างไร เราควรใช้แบบไหนดี แล้ว Service-oriented Architecture หล่ะมันคืออะไร เป็นต้น ไหนจะตีกับเรื่องของ Design Patterns แบบต่างๆอีก ดังนั้นผมจึงตั้งใจเขียนบทความนี้ขึ้นมาเพื่ออธิบายความสัมพันธ์ของแนวคิดดังต่อไปนี้คือ

  • Object-oriented Programming (OOP)
  • Component-oriented Architecture (COA)
  • Service-oriented Architecture (SOA)

ว่าแล้วก็ไปอ่านกันเลยครับ


MVC คืออะไร?

หลายคนคงเคยได้ยินแนวคิดการเขียนโปรแกรมแบบ M-V-C แต่อาจยังไม่เข้าใจว่าแท้จริงแล้วมันเป็นอย่างไร มันต่างๆจากการเขียนโปรแกรมแบบ OOP มั๊ย วันนี้ผมจะพูดถึงแนวคิด MVC นี้พร้อมยกตัวอย่างทางเทคนิคเพื่อให้เห็นภาพด้วย Java (หากคุณยังไม่เข้าใจหลักการเขียนโปรแกรมแบบ OOP ผมแนะนำให้ไปอ่านบทความ "Object-Oriented Programming (OOP) คืออะไรกันแน่?" และ "Objects คืออะไร?" ก่อน)



Books By Me

JavaScript Programming Guide book cover

JavaScript Programming Guide
Thai language
Kontentblue Publishing

About This Site

I use this site to share my knowledge in form of articles. I also use it as an experimental space, trying and testing things. If you have any problems viewing this site, please tell me.

→ More about me

→ Contact me

→ Me on facebook

Creative Commons Attribution License

creative commons logo

This license lets you distribute, remix, tweak my articles, even commercially, as long as you credit me for the original creation.

ด้วยสัญญาอนุญาตินี้ คุณสามารถเผยแพร่ ดัดแปลง แก้ไขและนำบทความของผมไปใช้ แม้ในเชิงธุรกิจ ตราบใดที่คุณได้อ้างอิงกลับมาและให้เครดิตกับผม